﻿
@page
@model AdminUI.Pages.SysManage.SysUserAddModel
@{
    var F = Html.F();
}

@section body{
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            <f:FormRow ColumnWidths="50% 35% 15%">
                <Items>

                    <f:DropDownList ID="UserType" Label="用户类型" SelectedValue="2" Width="200">
                        <f:ListItem Text="平台" Value="1" />
                        <f:ListItem Text="运营" Value="2" />
                        <f:ListItem Text="门店" Value="3" />
                    </f:DropDownList>
                    <f:CheckBox ID="IsEnable" Label="" Text="启用" Checked="true"></f:CheckBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:TextBox ID="UserName" Required="true" Label="登录账号" EmptyText="请输入登录账号（建议使用手机号）" ShowRedStar="true"></f:TextBox>
                    <f:TextBox ID="TrueName" Required="false" Label="姓名" EmptyText="请输入姓名"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:DropDownList ID="RoleID" Label="用户角色" DataTextField="RoleName" DataValueField="RoleID" DataSource="@ViewBag.RoleList" SelectedValue="-1"></f:DropDownList>
                    <f:TextBox ID="Mobile" Required="false" Label="手机号" EmptyText="请输入手机号"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:TextBox ID="Pwd" Required="false" Label="登录密码" EmptyText="请输入登录密码" Text="123456"></f:TextBox>
                    <f:NumberBox ID="TID" Label="租户ID" Text="0" MinValue="0" NoDecimal="true" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>

            <!-- 其他表单控件示例
    <f:FormRow ColumnWidths="50% 50%">
        <Items>
            <f:TriggerBox ID="Icon" Label="图标" Readonly="false" TriggerIcon="Search" OnClientTriggerClick="onSelectIcon();" EmptyText="请选择图标" EnableClickAction="false"></f:TriggerBox>
            <f:TriggerBox ID="ParentName" Label="上级菜单" Readonly="false" TriggerIcon="Search" Text="@ViewBag.MenuSelectedText" OnClientTriggerClick="onSelectMenu();" EmptyText="顶层菜单" EnableClickAction="false"></f:TriggerBox>
            <f:HtmlEditor Label="文本编辑器" ID="HtmlEditor1" Editor="UMEditor" BasePath="~/res/third-party/umeditor/" Height="250" Text="@ViewBag.InitContent"></f:HtmlEditor>
        </Items>
    </f:FormRow>
    -->
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextArea ID="Memo" EmptyText="请输入内容" Label="备注" AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="200"></f:TextArea>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" IconFont="Close" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="保存" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>

    </script>
}
